package net.lijingye.education.dao;

import net.lijingye.education.entity.Token;
import net.lijingye.education.exception.DaoException;
import org.springframework.stereotype.Repository;

/**
 * Created by LijingYe on 2016/3/31.
 */
@Repository
public interface TokenDao extends BaseDao<Token> {
    Token getByAccessToken(String accessToken) throws DaoException;

    boolean isAccessTokenAlreadyExists(String accessToken) throws DaoException;
}
